home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / boxes / aboutbox / aboutbox.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-03-21  |  22.0 KB  |  649 lines

  1. VERSION 4.00
  2. Begin VB.Form FAB 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "About Box"
  5.    ClientHeight    =   4485
  6.    ClientLeft      =   1020
  7.    ClientTop       =   1425
  8.    ClientWidth     =   6240
  9.    ClipControls    =   0   'False
  10.    FillColor       =   &H00FFFFFF&
  11.    BeginProperty Font 
  12.       name            =   "MS Sans Serif"
  13.       charset         =   0
  14.       weight          =   700
  15.       size            =   8.25
  16.       underline       =   0   'False
  17.       italic          =   0   'False
  18.       strikethrough   =   0   'False
  19.    EndProperty
  20.    ForeColor       =   &H80000008&
  21.    Height          =   4890
  22.    Icon            =   "ABOUTBOX.frx":0000
  23.    Left            =   960
  24.    LinkTopic       =   "Form2"
  25.    LockControls    =   -1  'True
  26.    MaxButton       =   0   'False
  27.    MinButton       =   0   'False
  28.    ScaleHeight     =   4485
  29.    ScaleWidth      =   6240
  30.    ShowInTaskbar   =   0   'False
  31.    Top             =   1080
  32.    Width           =   6360
  33.    Begin VB.Timer FSR_Check 
  34.       Enabled         =   0   'False
  35.       Interval        =   1000
  36.       Left            =   240
  37.       Top             =   1140
  38.    End
  39.    Begin VB.CommandButton CommandOK 
  40.       Cancel          =   -1  'True
  41.       Caption         =   "&OK"
  42.       Default         =   -1  'True
  43.       BeginProperty Font 
  44.          name            =   "MS Sans Serif"
  45.          charset         =   0
  46.          weight          =   400
  47.          size            =   8.25
  48.          underline       =   0   'False
  49.          italic          =   0   'False
  50.          strikethrough   =   0   'False
  51.       EndProperty
  52.       Height          =   375
  53.       Left            =   5280
  54.       TabIndex        =   0
  55.       Top             =   3960
  56.       Width           =   800
  57.    End
  58.    Begin Threed.SSPanel SSPanel1 
  59.       Height          =   735
  60.       Left            =   120
  61.       TabIndex        =   19
  62.       Top             =   120
  63.       Width           =   735
  64.       _Version        =   65536
  65.       _ExtentX        =   1296
  66.       _ExtentY        =   1296
  67.       _StockProps     =   15
  68.       BackColor       =   11589864
  69.       FloodShowPct    =   0   'False
  70.       Begin VB.PictureBox IconPicture 
  71.          AutoSize        =   -1  'True
  72.          BorderStyle     =   0  'None
  73.          Height          =   480
  74.          Left            =   120
  75.          ScaleHeight     =   480
  76.          ScaleWidth      =   480
  77.          TabIndex        =   1
  78.          Top             =   120
  79.          Width           =   480
  80.       End
  81.    End
  82.    Begin VB.Label OptLabel 
  83.       BorderStyle     =   1  'Fixed Single
  84.       Caption         =   "Label1"
  85.       Height          =   45
  86.       Index           =   9
  87.       Left            =   900
  88.       TabIndex        =   24
  89.       Top             =   2940
  90.       Width           =   4395
  91.    End
  92.    Begin VB.Label OptLabel 
  93.       Caption         =   "%  in Use"
  94.       BeginProperty Font 
  95.          name            =   "MS Sans Serif"
  96.          charset         =   0
  97.          weight          =   400
  98.          size            =   8.25
  99.          underline       =   0   'False
  100.          italic          =   0   'False
  101.          strikethrough   =   0   'False
  102.       EndProperty
  103.       Height          =   255
  104.       Index           =   19
  105.       Left            =   3000
  106.       TabIndex        =   23
  107.       Top             =   4090
  108.       Width           =   2055
  109.    End
  110.    Begin VB.Label OptLabel 
  111.       Caption         =   "System Memory Load:"
  112.       BeginProperty Font 
  113.          name            =   "MS Sans Serif"
  114.          charset         =   0
  115.          weight          =   400
  116.          size            =   8.25
  117.          underline       =   0   'False
  118.          italic          =   0   'False
  119.          strikethrough   =   0   'False
  120.       EndProperty
  121.       Height          =   255
  122.       Index           =   18
  123.       Left            =   960
  124.       TabIndex        =   22
  125.       Top             =   4090
  126.       Width           =   1995
  127.    End
  128.    Begin VB.Label OptLabel 
  129.       Caption         =   "Free Virtual"
  130.       BeginProperty Font 
  131.          name            =   "MS Sans Serif"
  132.          charset         =   0
  133.          weight          =   400
  134.          size            =   8.25
  135.          underline       =   0   'False
  136.          italic          =   0   'False
  137.          strikethrough   =   0   'False
  138.       EndProperty
  139.       Height          =   255
  140.       Index           =   17
  141.       Left            =   3000
  142.       TabIndex        =   21
  143.       Top             =   3835
  144.       Width           =   2055
  145.    End
  146.    Begin VB.Label OptLabel 
  147.       Caption         =   "Virtual Memory:"
  148.       BeginProperty Font 
  149.          name            =   "MS Sans Serif"
  150.          charset         =   0
  151.          weight          =   400
  152.          size            =   8.25
  153.          underline       =   0   'False
  154.          italic          =   0   'False
  155.          strikethrough   =   0   'False
  156.       EndProperty
  157.       Height          =   255
  158.       Index           =   16
  159.       Left            =   960
  160.       TabIndex        =   20
  161.       Top             =   3835
  162.       Width           =   1995
  163.    End
  164.    Begin VB.Label OptLabel 
  165.       BorderStyle     =   1  'Fixed Single
  166.       Height          =   45
  167.       Index           =   5
  168.       Left            =   900
  169.       TabIndex        =   18
  170.       Top             =   2220
  171.       Width           =   4395
  172.    End
  173.    Begin VB.Label OptLabel 
  174.       BorderStyle     =   1  'Fixed Single
  175.       Height          =   45
  176.       Index           =   2
  177.       Left            =   900
  178.       TabIndex        =   17
  179.       Top             =   1500
  180.       Width           =   4395
  181.    End
  182.    Begin VB.Label OptLabel 
  183.       Caption         =   "Free Paging"
  184.       BeginProperty Font 
  185.          name            =   "MS Sans Serif"
  186.          charset         =   0
  187.          weight          =   400
  188.          size            =   8.25
  189.          underline       =   0   'False
  190.          italic          =   0   'False
  191.          strikethrough   =   0   'False
  192.       EndProperty
  193.       Height          =   255
  194.       Index           =   15
  195.       Left            =   3000
  196.       TabIndex        =   16
  197.       Top             =   3580
  198.       Width           =   2055
  199.    End
  200.    Begin VB.Label OptLabel 
  201.       Caption         =   "Paging Memory:"
  202.       BeginProperty Font 
  203.          name            =   "MS Sans Serif"
  204.          charset         =   0
  205.          weight          =   400
  206.          size            =   8.25
  207.          underline       =   0   'False
  208.          italic          =   0   'False
  209.          strikethrough   =   0   'False
  210.       EndProperty
  211.       Height          =   255
  212.       Index           =   14
  213.       Left            =   960
  214.       TabIndex        =   15
  215.       Top             =   3580
  216.       Width           =   1995
  217.    End
  218.    Begin VB.Label OptLabel 
  219.       Caption         =   "Version:"
  220.       BeginProperty Font 
  221.          name            =   "MS Sans Serif"
  222.          charset         =   0
  223.          weight          =   400
  224.          size            =   8.25
  225.          underline       =   0   'False
  226.          italic          =   0   'False
  227.          strikethrough   =   0   'False
  228.       EndProperty
  229.       Height          =   255
  230.       Index           =   7
  231.       Left            =   960
  232.       TabIndex        =   14
  233.       Top             =   2640
  234.       Width           =   1155
  235.    End
  236.    Begin VB.Label OptLabel 
  237.       Caption         =   "Windows Type"
  238.       BeginProperty Font 
  239.          name            =   "MS Sans Serif"
  240.          charset         =   0
  241.          weight          =   400
  242.          size            =   8.25
  243.          underline       =   0   'False
  244.          italic          =   0   'False
  245.          strikethrough   =   0   'False
  246.       EndProperty
  247.       Height          =   255
  248.       Index           =   6
  249.       Left            =   960
  250.       TabIndex        =   13
  251.       Top             =   2340
  252.       Width           =   2535
  253.    End
  254.    Begin VB.Label OptLabel 
  255.       Caption         =   "Free Physical"
  256.       BeginProperty Font 
  257.          name            =   "MS Sans Serif"
  258.          charset         =   0
  259.          weight          =   400
  260.          size            =   8.25
  261.          underline       =   0   'False
  262.          italic          =   0   'False
  263.          strikethrough   =   0   'False
  264.       EndProperty
  265.       Height          =   255
  266.       Index           =   13
  267.       Left            =   3000
  268.       TabIndex        =   12
  269.       Top             =   3325
  270.       Width           =   2055
  271.    End
  272.    Begin VB.Label OptLabel 
  273.       Caption         =   "Physical Memory:"
  274.       BeginProperty Font 
  275.          name            =   "MS Sans Serif"
  276.          charset         =   0
  277.          weight          =   400
  278.          size            =   8.25
  279.          underline       =   0   'False
  280.          italic          =   0   'False
  281.          strikethrough   =   0   'False
  282.       EndProperty
  283.       Height          =   255
  284.       Index           =   12
  285.       Left            =   960
  286.       TabIndex        =   11
  287.       Top             =   3325
  288.       Width           =   1995
  289.    End
  290.    Begin VB.Label OptLabel 
  291.       Caption         =   "CPU"
  292.       BeginProperty Font 
  293.          name            =   "MS Sans Serif"
  294.          charset         =   0
  295.          weight          =   400
  296.          size            =   8.25
  297.          underline       =   0   'False
  298.          italic          =   0   'False
  299.          strikethrough   =   0   'False
  300.       EndProperty
  301.       Height          =   255
  302.       Index           =   11
  303.       Left            =   3000
  304.       TabIndex        =   10
  305.       Top             =   3070
  306.       Width           =   2055
  307.    End
  308.    Begin VB.Label OptLabel 
  309.       Caption         =   "CPU Type:"
  310.       BeginProperty Font 
  311.          name            =   "MS Sans Serif"
  312.          charset         =   0
  313.          weight          =   400
  314.          size            =   8.25
  315.          underline       =   0   'False
  316.          italic          =   0   'False
  317.          strikethrough   =   0   'False
  318.       EndProperty
  319.       Height          =   255
  320.       Index           =   10
  321.       Left            =   960
  322.       TabIndex        =   9
  323.       Top             =   3070
  324.       Width           =   1995
  325.    End
  326.    Begin VB.Label OptLabel 
  327.       Caption         =   "Build:"
  328.       BeginProperty Font 
  329.          name            =   "MS Sans Serif"
  330.          charset         =   0
  331.          weight          =   400
  332.          size            =   8.25
  333.          underline       =   0   'False
  334.          italic          =   0   'False
  335.          strikethrough   =   0   'False
  336.       EndProperty
  337.       Height          =   255
  338.       Index           =   8
  339.       Left            =   2160
  340.       TabIndex        =   8
  341.       Top             =   2640
  342.       Width           =   1335
  343.    End
  344.    Begin VB.Label NameLabel 
  345.       Caption         =   "Name Label"
  346.       BeginProperty Font 
  347.          name            =   "MS Sans Serif"
  348.          charset         =   0
  349.          weight          =   400
  350.          size            =   8.25
  351.          underline       =   0   'False
  352.          italic          =   0   'False
  353.          strikethrough   =   0   'False
  354.       EndProperty
  355.       Height          =   255
  356.       Left            =   960
  357.       TabIndex        =   2
  358.       Top             =   120
  359.       Width           =   4275
  360.    End
  361.    Begin VB.Label OptLabel 
  362.       Caption         =   "Company Name"
  363.       BeginProperty Font 
  364.          name            =   "MS Sans Serif"
  365.          charset         =   0
  366.          weight          =   400
  367.          size            =   8.25
  368.          underline       =   0   'False
  369.          italic          =   0   'False
  370.          strikethrough   =   0   'False
  371.       EndProperty
  372.       Height          =   255
  373.       Index           =   4
  374.       Left            =   960
  375.       TabIndex        =   7
  376.       Top             =   1920
  377.       Width           =   4275
  378.    End
  379.    Begin VB.Label OptLabel 
  380.       Caption         =   "User Name"
  381.       BeginProperty Font 
  382.          name            =   "MS Sans Serif"
  383.          charset         =   0
  384.          weight          =   400
  385.          size            =   8.25
  386.          underline       =   0   'False
  387.          italic          =   0   'False
  388.          strikethrough   =   0   'False
  389.       EndProperty
  390.       Height          =   255
  391.       Index           =   3
  392.       Left            =   960
  393.       TabIndex        =   6
  394.       Top             =   1620
  395.       Width           =   4275
  396.    End
  397.    Begin VB.Label OptLabel 
  398.       Caption         =   "Extra 2"
  399.       BeginProperty Font 
  400.          name            =   "MS Sans Serif"
  401.          charset         =   0
  402.          weight          =   400
  403.          size            =   8.25
  404.          underline       =   0   'False
  405.          italic          =   0   'False
  406.          strikethrough   =   0   'False
  407.       EndProperty
  408.       Height          =   255
  409.       Index           =   1
  410.       Left            =   960
  411.       TabIndex        =   5
  412.       Top             =   1140
  413.       Width           =   4275
  414.    End
  415.    Begin VB.Label OptLabel 
  416.       Caption         =   "Extra 1"
  417.       BeginProperty Font 
  418.          name            =   "MS Sans Serif"
  419.          charset         =   0
  420.          weight          =   400
  421.          size            =   8.25
  422.          underline       =   0   'False
  423.          italic          =   0   'False
  424.          strikethrough   =   0   'False
  425.       EndProperty
  426.       Height          =   255
  427.       Index           =   0
  428.       Left            =   960
  429.       TabIndex        =   4
  430.       Top             =   840
  431.       Width           =   4275
  432.    End
  433.    Begin VB.Label CoprLabel 
  434.       Caption         =   "Copyright Label"
  435.       BeginProperty Font 
  436.          name            =   "MS Sans Serif"
  437.          charset         =   0
  438.          weight          =   400
  439.          size            =   8.25
  440.          underline       =   0   'False
  441.          italic          =   0   'False
  442.          strikethrough   =   0   'False
  443.       EndProperty
  444.       Height          =   255
  445.       Left            =   960
  446.       TabIndex        =   3
  447.       Top             =   540
  448.       Width           =   4275
  449.    End
  450. Attribute VB_Name = "FAB"
  451. Attribute VB_Creatable = False
  452. Attribute VB_Exposed = False
  453. ' *******************************************************************
  454. ' Some code and files: 1996 by Gregory H. Bragg, SofTecH Development
  455. '                      1995 by David Warren, MMC Software
  456. ' Some of the Registry code is from the VB4 Setup Kit, SETUP1 files.
  457. ' Originally published by PC Magazine. Ported over to
  458. ' 32 Bit VB4 by Gregory H. Bragg starting March 6, 1996
  459. ' Original: November 8, 1993  By Neil J. Rubenking
  460. ' Revised:  March 21, 1996    By Gregory H. Bragg
  461. ' To use the generic About Box defined in this file, your VBP file
  462. ' must also include the module ABOUTBOX.BAS. Just call the function
  463. ' DisplayAboutBox, passing parameters specific to your program.
  464. ' DO NOT load the form FAB prior to calling DisplayAboutBox!
  465. ' *******************************************************************
  466. Option Explicit
  467. Private Sub CommandOK_Click()
  468.     Unload FAB
  469. End Sub
  470. Private Sub Form_Load()
  471.     Dim lResult As Long
  472.     ' First let's centre the Icon picture inside the 3D raised container
  473.     Dim tmp As Integer
  474.     tmp = (SSPanel1.Width - IconPicture.Width) \ 2
  475.     IconPicture.Left = tmp
  476.     tmp = (SSPanel1.Height - IconPicture.Height) \ 2
  477.     IconPicture.Top = tmp
  478.     ' If both user and company are excluded, eliminate the second separator
  479.     If ((Excl And AB_NO_USER) = &H1) And ((Excl And AB_NO_COMPANY) = &H2) Then
  480.         EliminateLabel 2
  481.     Else
  482.         ' initialize some variables since we want either
  483.         ' the user name or the company name or both...
  484.         Dim szUserInfo As String, szSubkey As String
  485.         Dim hKey As Long
  486.         Dim Success As Boolean
  487.         szSubkey = "SOFTWARE\Microsoft\Windows\CurrentVersion"
  488.     End If
  489.         
  490.     ' Get the User name from the Registry, if wanted
  491.     If Excl And AB_NO_USER Then
  492.         EliminateLabel 3
  493.     Else
  494.         If (OSRegOpenKeyEx(HKEY_LOCAL_MACHINE, szSubkey, 0&, KEY_QUERY_VALUE, hKey)) = ERROR_SUCCESS Then
  495.             Success = RegQueryStringValue(hKey, "RegisteredOwner", szUserInfo)
  496.             Success = RegCloseKey(hKey)
  497.             OptLabel(3).Caption = szUserInfo
  498.         End If
  499.     End If
  500.     ' Get the Company name from the Registry, if wanted
  501.     If Excl And AB_NO_COMPANY Then
  502.         EliminateLabel 4
  503.     Else
  504.         If (OSRegOpenKeyEx(HKEY_LOCAL_MACHINE, szSubkey, 0&, KEY_QUERY_VALUE, hKey)) = ERROR_SUCCESS Then
  505.             Success = RegQueryStringValue(hKey, "RegisteredOrganization", szUserInfo)
  506.             Success = RegCloseKey(hKey)
  507.             OptLabel(4).Caption = szUserInfo
  508.         End If
  509.     End If
  510.     ' Show Windows version, if wanted
  511.     If Excl And AB_NO_WIN_VERSION Then
  512.         EliminateLabel 6
  513.         EliminateLabel 7
  514.         OptLabel(8).Visible = False
  515.     Else
  516.         Dim OSVer As OSVERSIONINFO
  517.         OSVer.dwOSVersionInfoSize = Len(OSVer)
  518.         lResult = GetVersionEx(OSVer)
  519.         If lResult Then
  520.             Select Case OSVer.dwPlatformId
  521.                 Case VER_PLATFORM_WIN32s
  522.                     'NOTE: VB4/32 apps won't run on Win32s so this will never happen!
  523.                     OptLabel(6).Caption = "Win32s Subsystem on Windows 3.xx"
  524.                 Case VER_PLATFORM_WIN32_WINDOWS
  525.                     'NOTE: This value applies for all 32-bit non-NT Windows
  526.                     '      versions, not necessarily just Windows 95
  527.                     OptLabel(6).Caption = "Microsoft Windows 95"
  528.                 Case VER_PLATFORM_WIN32_NT
  529.                     OptLabel(6).Caption = "Microsoft Windows NT"
  530.             End Select
  531.         End If
  532.         ' Show Windows version number, if wanted
  533.         If Excl And AB_NO_VERSION_NUMBER Then
  534.             EliminateLabel 7
  535.         Else
  536.             OptLabel(7).Caption = "Version:  " & Format$(OSVer.dwMajorVersion) _
  537.                                   & "." & Format$(OSVer.dwMinorVersion, "00")
  538.         End If
  539.         ' Show Windows build number, if wanted
  540.         If Excl And AB_NO_BUILD_NUMBER Then
  541.             OptLabel(8).Visible = False
  542.         Else
  543.             OptLabel(8).Caption = "Build:  " & Format$(OSVer.dwBuildNumber Mod 65536)
  544.         End If
  545.     End If
  546.     ' Show CPU Type, if wanted
  547.     If Excl And AB_NO_CPU Then
  548.         EliminateLabel 10
  549.         OptLabel(11).Visible = False
  550.     Else
  551.         Dim SysInfo As SYSTEM_INFO
  552.         Dim CPU_Name As String
  553.         Call GetSystemInfo(SysInfo)
  554.         Select Case SysInfo.dwProcessorType
  555.             Case PROCESSOR_INTEL_386
  556.                 CPU_Name = "Intel 386"
  557.             Case PROCESSOR_INTEL_486
  558.                 CPU_Name = "Intel 486"
  559.             Case PROCESSOR_INTEL_PENTIUM
  560.                 CPU_Name = "Pentium"
  561.             Case PROCESSOR_MIPS_R2000
  562.                 CPU_Name = "Mips R2000"
  563.             Case PROCESSOR_MIPS_R3000
  564.                 CPU_Name = "Mips R3000"
  565.             Case PROCESSOR_MIPS_R4000
  566.                 CPU_Name = "Mips R4000"
  567.             Case PROCESSOR_ALPHA_21064
  568.                 CPU_Name = "Alpha 21064"
  569.             Case Else ' default if not defined...
  570.                 CPU_Name = Format$(SysInfo.dwProcessorType)
  571.         End Select
  572.         OptLabel(11).Caption = Format$(SysInfo.dwNumberOfProcessors) _
  573.                                & "  " & CPU_Name & "  Processor"
  574.     End If
  575.     ' Let's enable the Timer control and call GlobalMemoryStatus()
  576.     ' only if we are going to display the available memory status...
  577.     If (((Excl And AB_NO_PHYSICAL) = &H40) And ((Excl And AB_NO_PAGING) = &H80) _
  578.         And ((Excl And AB_NO_VIRTUAL) = &H100) And ((Excl And AB_NO_MEMLOAD) = &H200)) _
  579.         = False Then
  580.         FSR_Check.Enabled = True    'enable the Timer control
  581.     Else
  582.         If Excl And AB_NO_CPU Then  'eliminate the third separator
  583.             EliminateLabel 9
  584.         End If
  585.     End If
  586.     ' Show Physical Memory, if wanted
  587.     If Excl And AB_NO_PHYSICAL Then
  588.         EliminateLabel 12
  589.         OptLabel(13).Visible = False
  590.     End If
  591.     ' Show Paging Memory, if wanted
  592.     If Excl And AB_NO_PAGING Then
  593.         EliminateLabel 14
  594.         OptLabel(15).Visible = False
  595.     End If
  596.     ' Show Virtual Memory, if wanted
  597.     If Excl And AB_NO_VIRTUAL Then
  598.         EliminateLabel 16
  599.         OptLabel(17).Visible = False
  600.     End If
  601.     ' Show Memory Load, if wanted
  602.     If Excl And AB_NO_MEMLOAD Then
  603.         EliminateLabel 18
  604.         OptLabel(19).Visible = False
  605.     End If
  606. End Sub
  607. ' Let's check the memory status every Timer interval since the
  608. ' information returned is volatile, and there is no guarantee
  609. ' that two sequential calls to this function will return the
  610. ' same information...
  611. Private Sub FSR_Check_Timer()
  612.     Dim MemStat As MEMORYSTATUS
  613.     Dim MemData As Long
  614.     MemStat.dwLength = Len(MemStat)
  615.     Call GlobalMemoryStatus(MemStat)
  616.     ' Show Physical Memory, if wanted
  617.     If (Excl And AB_NO_PHYSICAL) = False Then
  618.         MemData = MemStat.dwAvailPhys
  619.         If MemData <= 1024 Then
  620.             OptLabel(13) = Format$(MemData) & "  Bytes Free"
  621.         Else
  622.             OptLabel(13) = Format$(MemData \ 1024, "###,###,###") & "  KB Free"
  623.         End If
  624.     End If
  625.     ' Show Paging Memory, if wanted
  626.     If (Excl And AB_NO_PAGING) = False Then
  627.         MemData = MemStat.dwAvailPageFile
  628.         If MemData <= 1024 Then
  629.             OptLabel(15) = Format$(MemData) & "  Bytes Free"
  630.         Else
  631.             OptLabel(15) = Format$(MemData \ 1024, "###,###,###") & "  KB Free"
  632.         End If
  633.     End If
  634.     ' Show Virtual Memory, if wanted
  635.     If (Excl And AB_NO_VIRTUAL) = False Then
  636.         MemData = MemStat.dwAvailVirtual
  637.         If MemData <= 1024 Then
  638.             OptLabel(17) = Format$(MemData) & "  Bytes Free"
  639.         Else
  640.             OptLabel(17) = Format$(MemData \ 1024, "###,###,###") & "  KB Free"
  641.         End If
  642.     End If
  643.     ' Show Memory Load, if wanted
  644.     If (Excl And AB_NO_MEMLOAD) = False Then
  645.         MemData = MemStat.dwMemoryLoad
  646.         OptLabel(19) = Format$(MemData) & " %  in Use"
  647.     End If
  648. End Sub
  649.